/**
 * 
 */
package info.niwota.webagent;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author qiangli
 * 
 */
@SuppressWarnings("serial")
public class PeerServlet extends BaseServlet {
	private static final Logger log = Logger.getLogger(PeerServlet.class
			.getName());

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		
		log.info("url: " + req.getRequestURL() + " query: " + req.getQueryString());
	
		sendMessage(req, res, "IP", null);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		doGet(req, res);
	}

}
